package com.zidongxiangxi.sharding.job.core.listener;

import org.apache.curator.framework.recipes.cache.TreeCacheEvent;

/**
 * 节点变更监听
 *
 * @author chenxudong
 * @date 2021/02/20
 */
public interface NodeChangeListener {
    /**
     * 数据变更监听
     *
     * @param path 路径
     * @param eventType 事件类型
     * @param data 数据
     */
    void dataChanged(final String path, final TreeCacheEvent.Type eventType, final String data);
}
